package com.example.zhaohang.mvp.presenter;

import com.example.zhaohang.mvp.view.PrensentView;

/**
 * Created by 赵航 on 2017/7/15.
 */

public class MianMVPPresenterImpl implements MianMVPPresenter {

    //一切都是面向接口,多态
    private PrensentView mMainActivity;
    private String text = "这是mvp的吐司";
    public MianMVPPresenterImpl(PrensentView mainActivity) {
        this.mMainActivity = mainActivity;
    }

    @Override
    public void doing() {

        //两个接口要进行关联
        mMainActivity.setText(text);

    }
}
